import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import KxWorkerSexPieChart from "./index";

const meta = {
  title: "饼图/可信工人性别统计饼图KxWorkerSexPieChart",
  component: KxWorkerSexPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "313px", width: "516px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof KxWorkerSexPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "男",
        amount: 2772,
      },
      {
        name: "女",
        amount: 1493,
      },
    ],
  },
};
